<extend name="Base/common" />
<block name="body">
<style>
.pager{
text-align:center;
}
ul.pagination {
  display: inline-block;
  padding: 0;
  margin: 20px 0 0 0;
}

ul.pagination li {
  display: inline;
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 5px;
}

ul.pagination li.active {
  background-color: #4CAF50;
  color: white;
  border-radius: 5px;
}
ul.pagination li:hover:not(.active) {background-color: #ddd;}
ul.pagination li{
      border: 1px solid #ddd; /* Gray */
}
</style>
<div class="text-c">
  <form action="#" method="post">
    渠道:
    <span class="select-box inline">
      <select name="service" class="select">
        <option value="0">全部</option>
        <foreach name="channel_list" item="item">
        <option value="{$item['type']}">{$item['name']}</option>
        </foreach>
      </select>
    </span>
    商户:
    <span class="select-box inline">
      <select name="mch_id" class="select">
        <option value="0">全部</option>
        <foreach name="account_list" item="item">
        <option value="{$item['mch_id']}">{$item['username']}</option>
        </foreach>
      </select>
    </span>
    <button name="" id="" class="btn btn-success" type="submit"> 搜索 </button>
  </form>
</div>
<div class="page-container">
  <table class="table table-border table-bordered table-bg">
    <thead>
      <tr><th>ID</th><th>商户</th><th>渠道</th><th>订单号</th><th>三方订单号</th><th>订单金额</th><th>支付状态</th><th>通知状态</th><th>操作</th></tr>
    </thead>
    <tbody>
    <foreach name="list" item="item">
    <tr>
      <td>{$item['id']}</td>
      <td>{$item['username']}</td>
      <td>{$item['name']}</td>
      <td>{$item['trade_no']}</td>
      <td>{$item['out_trade_no']}</td>
      <td>{$item['total_fee']}/100</td>
      <td>{$item['pay_status']}</td>
      <td>{$item['notice_status']}</td>
      <td>
        <a href="{:U('/admin/order/order_info', array('id' => $item['id']))}">详情</a>
      </td>
    </tr>
    </foreach>
    </tbody>
  </table>
  <div class="pager">{$page}</div>
</div>
</block>
